{if $filtro}
	<form class="filtroBusca">
		<fieldset>
			<legend>Filtro</legend>
			<div class="widthFull floatLeft heigth30">
				{if $arrOptions}
				<select name="tipo_campo">
				{section loop=$arrOptions name=cont}
				<option value="{$arrOptions[cont]}">{$arrOptions[cont]}</option>
				{/section}
				</select>
				<input type="text" name="valor_param" id="valor_param" class="" maxlength="200" value=""/>
				<input type="submit" value="Buscar" />
				{/if}
			</div>
			
		</fieldset>
	</form>
{/if}

<table class="{$CLASS_COMP}">
	<tr>
		{section loop=$arrColunas name=col}
		<th>{$arrColunas[col]}</th>
		{/section}
		{if $EXIBIR_EDITAR == "S"}
			<th>Editar</th>
		{/if}
		{if $EXIBIR_DELETAR == "S"}
			<th>Deletar</th>
		{/if}
		{if $EXIBIR_ACOES != "N"}
			<th>Ações</th>
		{/if}
		{if $EXIBIR_ACOES_RANKING == "S"}
			<th>Histórico</th>
		{/if}
	</tr>
	<!-- LOOP -->
	{section loop=$arrDados name=cont}
		{if $smarty.section.cont.index mod 2}
		<tr class="bgCinzaClaro heigth30">
		{else}
		<tr class="heigth30">
		{/if}
		{section loop=$numCols name=col start=1}
		<td>{$arrDados[cont][col]}</td>
		{/section}
		{if $EXIBIR_ACOES != "N"} 
			<td class="textCenter">
				<a href="?a=form&id={$arrDados[cont][0]}{$paramsPag}" title="Editar"><img src="../imgs/btn_editar.png"  alt="Editar" title="Editar"></a>
				<a href="javascript:void(0);" onclick="javascript:confirmaPara('?a=excluir&id={$arrDados[cont][0]}{$paramsPag}', 'Deseja realmente excluir o registro {$arrDados[cont][0]}?')" title="Excluir">
					<img src="../imgs/btn_excluir.png"  alt="Excluir" title="Excluir"></a>
			</td>
		{/if}		
		{if $EXIBIR_EDITAR == "S"} 
			<td class="textCenter">
				<a href="?a=form&id={$arrDados[cont][0]}{$paramsPag}" title="Editar"><img src="../imgs/btn_editar.png"  alt="Editar" title="Editar"></a>
			</td>
		{/if}		
		{if $EXIBIR_DELETAR == "S"} 
			<td class="textCenter">
				<a href="javascript:void(0);" onclick="javascript:confirmaPara('?a=excluir&id={$arrDados[cont][0]}{$paramsPag}', 'Deseja realmente excluir o registro {$arrDados[cont][0]}?')" title="Excluir">
					<img src="../imgs/btn_excluir.png"  alt="Excluir" title="Excluir"></a>
			</td>
		{/if}		
		{if $EXIBIR_ACOES_RANKING == "S"}
			<td class="textCenter">
				<a href="Ranking.php?a=form&id={$arrDados[cont][0]}&cpf_usuario={$arrDados[cont][2]}" title="Editar">Histórico</a>
			</td>
		{/if}
	</tr>
	{sectionelse}
	<tr>
		<td class="textCenter" colspan="2">Não exitem registros cadastrados</td>
	</tr>
	{/section}
	<!-- FIM LOOP -->
</table>

<div class="indicePaginacao">
	<div class="floatLeft width120" style="font-size: 14px; color:#EC5F00; ">Página {$pagAtual} de {$numPags}</div>
	<div class="floatRight width120 textAlignRight" style="font-size: 14px; color:#EC5F00; ">{$numRegs} itens retornados.</div>
</div>

{if $numPags > 1}
<div class="paginacaoGrid">
	<a class="floatLeft" href="?p=1{$paramsPag}">&lt;&lt; Início</a>
	<a class="floatLeft" href="?p={$pagAnterior}{$paramsPag}">&lt; Anterior</a>
	
	<a class="floatRight" href="?p={$numPags}{$paramsPag}">Última &gt;&gt;</a>
	<a class="floatRight" href="?p={$proxPag}{$paramsPag}">Póxima &gt;</a>
</div>
{/if}